import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqEntityIdHelper } from "./SeqEntityIdHelper";
type int = number;
//class SGuildWarSingUp
    
    export  class SGuildWarSingUp extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarSingUp();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.guildLevel);
            arg1.writeInt(this.camp);
            arg1.writeInt(this.allWarfare);
            SeqEntityIdHelper.write(arg1, this.entityIds);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.guildLevel = arg1.readInt();
            this.camp = arg1.readInt();
            this.allWarfare = arg1.readInt();
            this.entityIds = SeqEntityIdHelper.read(arg1);
            return;
        }

        public /* const */_type: int=157;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */guildLevel: int;

        public /* var */camp: int;

        public /* var */allWarfare: int;

        public /* var */entityIds: Array<any>;

        public static /* var */_regist: SGuildWarSingUp;
    }

            SGuildWarSingUp._regist = new SGuildWarSingUp(true);
        